﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004B1 RID: 1201
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EquipRelic : IMessage<EquipRelic>, IMessage, IEquatable<EquipRelic>, IDeepCloneable<EquipRelic>, IBufferMessage
	{
		// Token: 0x17000F7A RID: 3962
		// (get) Token: 0x06003621 RID: 13857 RVA: 0x00094D98 File Offset: 0x00092F98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EquipRelic> Parser
		{
			get
			{
				return EquipRelic._parser;
			}
		}

		// Token: 0x17000F7B RID: 3963
		// (get) Token: 0x06003622 RID: 13858 RVA: 0x00094D9F File Offset: 0x00092F9F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EquipRelicReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F7C RID: 3964
		// (get) Token: 0x06003623 RID: 13859 RVA: 0x00094DB1 File Offset: 0x00092FB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EquipRelic.Descriptor;
			}
		}

		// Token: 0x06003624 RID: 13860 RVA: 0x00094DB8 File Offset: 0x00092FB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EquipRelic()
		{
		}

		// Token: 0x06003625 RID: 13861 RVA: 0x00094DC0 File Offset: 0x00092FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EquipRelic(EquipRelic other) : this()
		{
			this.relicUniqueId_ = other.relicUniqueId_;
			this.type_ = other.type_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003626 RID: 13862 RVA: 0x00094DF1 File Offset: 0x00092FF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EquipRelic Clone()
		{
			return new EquipRelic(this);
		}

		// Token: 0x17000F7D RID: 3965
		// (get) Token: 0x06003627 RID: 13863 RVA: 0x00094DF9 File Offset: 0x00092FF9
		// (set) Token: 0x06003628 RID: 13864 RVA: 0x00094E01 File Offset: 0x00093001
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RelicUniqueId
		{
			get
			{
				return this.relicUniqueId_;
			}
			set
			{
				this.relicUniqueId_ = value;
			}
		}

		// Token: 0x17000F7E RID: 3966
		// (get) Token: 0x06003629 RID: 13865 RVA: 0x00094E0A File Offset: 0x0009300A
		// (set) Token: 0x0600362A RID: 13866 RVA: 0x00094E12 File Offset: 0x00093012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x0600362B RID: 13867 RVA: 0x00094E1B File Offset: 0x0009301B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EquipRelic);
		}

		// Token: 0x0600362C RID: 13868 RVA: 0x00094E29 File Offset: 0x00093029
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EquipRelic other)
		{
			return other != null && (other == this || (this.RelicUniqueId == other.RelicUniqueId && this.Type == other.Type && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600362D RID: 13869 RVA: 0x00094E68 File Offset: 0x00093068
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RelicUniqueId != 0U)
			{
				num ^= this.RelicUniqueId.GetHashCode();
			}
			if (this.Type != 0U)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600362E RID: 13870 RVA: 0x00094EC0 File Offset: 0x000930C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600362F RID: 13871 RVA: 0x00094EC8 File Offset: 0x000930C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003630 RID: 13872 RVA: 0x00094ED4 File Offset: 0x000930D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Type);
			}
			if (this.RelicUniqueId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RelicUniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003631 RID: 13873 RVA: 0x00094F30 File Offset: 0x00093130
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RelicUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RelicUniqueId);
			}
			if (this.Type != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Type);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003632 RID: 13874 RVA: 0x00094F88 File Offset: 0x00093188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EquipRelic other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RelicUniqueId != 0U)
			{
				this.RelicUniqueId = other.RelicUniqueId;
			}
			if (other.Type != 0U)
			{
				this.Type = other.Type;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003633 RID: 13875 RVA: 0x00094FD8 File Offset: 0x000931D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003634 RID: 13876 RVA: 0x00094FE4 File Offset: 0x000931E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RelicUniqueId = input.ReadUInt32();
					}
				}
				else
				{
					this.Type = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400153E RID: 5438
		private static readonly MessageParser<EquipRelic> _parser = new MessageParser<EquipRelic>(() => new EquipRelic());

		// Token: 0x0400153F RID: 5439
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001540 RID: 5440
		public const int RelicUniqueIdFieldNumber = 9;

		// Token: 0x04001541 RID: 5441
		private uint relicUniqueId_;

		// Token: 0x04001542 RID: 5442
		public const int TypeFieldNumber = 5;

		// Token: 0x04001543 RID: 5443
		private uint type_;
	}
}
